Skip to main content

Directory Exists

AutomatR.FTP.DirectoryExists

The "Directory Exists" activity in AutomatR is part of the FTP activities package, allowing automation processes to verify whether a specific directory is available on the FTP server. This activity streamlines the process of checking directory existence, enhancing the efficiency of automation workflows.

Properties

NameDescription
Input
User NameProvides a valid username to establish a connection with the FTP server. String variables containing the username.
PasswordProvides the password for the username to establish a connection with the FTP server. String variables containing the password.
HostProvides a valid host credential to establish a connection with the FTP server. String variables containing the host information.
Server PathProvides the server path for the directory whose existence you want to verify. For example, "/DirectoryExist". String variables containing the server path.
Miscellaneous
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Directory Exists" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. For example, if the delay is 1000 milliseconds or 1 sec, set it to 1.
Output
ResultOutputs a Boolean value (True or False) based on the existence of the specified directory on the FTP server. Variables of relevant types (e.g., Boolean variables) to store the existence result.

How to use:

  1. Drag and drop the "Directory Exists" activity onto the workflow.
  2. Configure the properties by specifying the FTP server credentials, server path for the directory, and optional delay.
  3. Execute the workflow to check the existence of the specified directory on the FTP server.

Example: Consider an example where the "Directory Exists" activity is used to verify the existence of a directory named "DirectoryExist" on the FTP server:

Directory Exists:
Delay: 0
Password: "your_password"
User Name: "your_username"
Host: "ftp.yourftpserver.com"
Server Path: "/DirectoryExist"
Result: doesDirectoryExist

In this example, the activity checks whether the "DirectoryExist" directory exists on the FTP server. The result of the check (True or False) is stored in the Boolean variable "doesDirectoryExist" for further handling in the workflow.